﻿@model GameSchool.Models.Profile
<ul class="breadcrumb">  
	<li><a href="/Home">Forsíða</a> <span class="divider">></span></li>
	<li><a href="/User/allUsers">Notendur</a> <span class="divider">></span></li>  
	<li class="active">@Model.FullName</li>
</ul>
<fieldset>
    <legend>Upplýsingar</legend>	

    <div class="display-label"><strong>Fullt nafn</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FullName)
    </div>

    <div class="display-label"><strong>Heimilisfang</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Address)
    </div>

    <div class="display-label"><strong>Kennitala</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Ssn)
    </div>

    <div class="display-label"><strong>Deild</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Division)
    </div>

    <div class="display-label"><strong>Braut</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubDivision)
    </div>

    <div class="display-label"><strong>Notandanafn</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserName)
    </div>
</fieldset>
<br />
	
	@if (User.IsInRole("Admin"))
 {
		<div class="display-label"><strong>Einstakur notandalykill</strong></div>
		@Html.DisplayText("providerkey")
		<br />
		<br />
		<a class="btn btn-primary" href="/GameRegistration/EnlistStudent">Skrá þennan notanda í námskeið</a>
	 
		
 }

<p>
    <!--Edit linkurinn, commentum hann út í augnablikinu, spurning hvort notandi sjálfur eigi að fá að breyta einhverju, kemur í ljós-->
    @*@Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) |*@
    @*@Html.ActionLink("Til baka á forsíðu", "Index","Home")*@
</p>